package com.itheima.chapter10.volatile2;

public class Mythread2 extends Thread{
    @Override
    public void run() {
        synchronized (Money.lock) {
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            Money.money=90000;
        }

    }
}
